<?php

namespace AngelesVida\DataBaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Horario
 *
 * @ORM\Table(name="horario")
 * @ORM\Entity
 */
class Horario
{
    /**
     * @var integer
     *
     * @ORM\Column(name="cod_horario", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="fecha", type="date", nullable=false)
     */
    private $fecha;

    /**
     * @var string
     *
     * @ORM\Column(name="departamento", type="string", length=45, nullable=false)
     */
    private $departamento;

    /**
     * @var \Doctrine\Common\Collections\Collection
     *
     * @ORM\ManyToMany(targetEntity="Usuario", inversedBy="codHorario")
     * @ORM\JoinTable(name="usuario_horario",
     *   joinColumns={
     *     @ORM\JoinColumn(name="cod_horario", referencedColumnName="cod_horario")
     *   },
     *   inverseJoinColumns={
     *     @ORM\JoinColumn(name="cedula", referencedColumnName="cedula")
     *   }
     * )
     */
    private $cedula;

    /**
     * Constructor
     */
    public function __construct()
    {
        $this->cedula = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    function getId() {
        return $this->id;
    }

    function getFecha() {
        return $this->fecha;
    }

    function getDepartamento() {
        return $this->departamento;
    }

    function getCedula() {
        return $this->cedula;
    }

    function setFecha(\DateTime $fecha) {
        $this->fecha = $fecha;
    }

    function setDepartamento($departamento) {
        $this->departamento = $departamento;
    }

    function setCedula(\Doctrine\Common\Collections\Collection $cedula) {
        $this->cedula = $cedula;
    }



}
